<style>
    .left-label{
        text-align: left;
        width: 75px;
        margin-left: 0px;
    }
    .input-sm{
        width:220px ;
        display: inline;
        height: 30px;
    }

    .input-lg{
        width: 555px;
        display: inline;
        height: 30px;
    }

    .tab-bar > li a{
        color: #777;
    }
    .tab-bar > li.active a{
        background-color: #f5f5f5;
        color: #111;
    }
    .tab-bar{
        background-color: #dddddd;
    }
</style>
<script>
    var schoolData={{ data }};

</script>
<table style="height: 100%;width: 100%">
    <tr style="height: 48px">
        <td><div  style="width: 100%;background-color: #ccc;"><label id="title_school" style="text-align: center;font-size: 20px;width: 100%;margin: 10px;letter-spacing: 2px;">{{ schoolName }} <a  class="btn btn-sm btn-default pull-right return" style="margin-right: 20px">返回</a></label></div></td>
    </tr>
    <tr >
        <td>
            <div class="smart-widget widget-dark" style="height: 100%;width: 100%;margin-bottom: 0px;border-top: 1px;">
                <div class="smart-widget-inner" style="height: 100%;width: 100%; background-color:#f5f5f5">
                    <div  class="widget-tab clearfix" >
                        <ul class="tab-bar">
                            <li class="active"><a href="#style3Tab1" data-toggle="tab"> 基本情况</a></li>
                            {% if isShowFollow %}
                                <li class=""><a href="#style3Tab2" data-toggle="tab"> 跟进情况</a></li>
                            {% endif %}
                            {% if isShowIntention %}
                                <li class=""><a href="#style3Tab3" data-toggle="tab"> 意向情况</a></li>
                            {% endif %}
                            {% if isShowCooperate %}
                                <li class=""><a href="#style3Tab4" data-toggle="tab"> 合作模式</a></li>
                            {% endif %}
                            {% if isShowOperation %}
                                <li class=""><a href="#style3Tab5" data-toggle="tab"> 运营等级</a></li>
                            {% endif %}
                            {% if isShowContact %}
                            <li class=""><a href="#style3Tab6" data-toggle="tab"> 联系人</a></li>
                            {% endif %}
                            {#<li class=""><a href="#style3Tab7" data-toggle="tab"> 剩余班级 </a></li>#}

                        </ul>
                    </div>
                    <div class="smart-widget-body" style="height: 100%;width: 100%;padding-bottom: 0px;">
                        <div class="tab-content" style="height: 100%;width: 100%;">
                            <div class="tab-pane fade in active" id="style3Tab1" style="width: 100%;overflow-y:auto ">
                                <form id="form" role="form" class="form form-horizontal" style="height: 100%;margin-left: 10px" method="post" >
                                    <div class="form-group" style="display: none">
                                        <label class="control-label col-sm-3 left-label">ID：</label>
                                        <div class="col-sm-9" style="float: right">
                                            <input type="text" class="form-control" name="iCUId" id="iCUId"  >
                                        </div>
                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-top: 10px;display: none;margin-bottom: 0px;">
                                        <label class="left-label">学校ID</label>
                                        <input type="number" class="form-control input-sm"  name='iSchoolId' id='iSchoolId'   >
                                    </div><!-- /form-group -->

                                    <div class="form-group" style="padding-top: 15px; margin-left:10px;margin-bottom: 0px;">
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">学校名称</label>
                                            <input type="text" class="form-control input-sm" name="sSchoolName"  must="true" id="sSchoolName" >
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">学校编号</label>
                                            <input type="number" class="form-control input-sm"   name='iSchoolId' id='iSchoolId' readonly >
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">学校等级</label>
                                            <select type="text" class=" form-control input-sm" name="iLevel"  > 
                                                <option value=""  style="display: none" selected>请选择</option> 
                                                {% for id,level in ilevel %}
                                                    <option value="{{ id }}">{{ level }}</option>
                                                {% endfor %}

                                            </select>
                                        </div>
                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px;">
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">学校类型</label>
                                            <select type="text" class=" form-control input-sm " name="iType"  > 
                                                <option value="" style="display: none" selected>请选择</option> 
                                                {% for id,text in iType %}
                                                    <option value="{{ id }}">{{ text }}</option>
                                                {% endfor %}
                                            </select> 
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">办校时间</label>
                                            <input type="text" name="tSchoolDate"  must="true" class="form-control input-sm form_datetime"  >
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">合作时间</label>
                                            <input type="text" name="tCoopDate"  must="true" class="form-control input-sm form_datetime"  >
                                        </div>
                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px">
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">介绍人姓名</label>
                                            <input type="text" class=" form-control input-sm" name="sIntroName"  >
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">负责人姓名</label>
                                            <input type="text"  class=" form-control input-sm" name="sChargeName" disabled  >
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">负责人电话</label>
                                            <input type="text" class="form-control input-sm"name="sChargePhone" disabled  >
                                        </div>

                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px">
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">组别</label>
                                            <select type="text" class="form-control input-sm" name="iGroupId" id="iGroupId" >
                                                <option value="" style="display: none" selected>请选择</option> 
                                                {% for id,gid in iGroupId %}
                                                    <option value="{{ id }}">{{ gid }}</option>
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">市场负责人</label>
                                            <select type="text" class=" form-control input-sm"  name="iMarketId">
                                                <option value="" selected style="display: none;">请选择</option>
                                                {% for id,text in iMarketIds %}
                                                    <option value="{{ id }}">{{ text }}</option>
                                                {% endfor %}
                                            </select>
                                            {#<input type="text"   name="sMarketName"  >#}
                                        </div>
                                        <div class="col-xs-6 col-sm-4" style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">运营负责人</label>
                                            {#<input type="text" class="form-control input-sm"name="sOperationName"   >#}
                                            <select type="text" class=" form-control input-sm"  name="iOperateId">
                                                <option value="" selected style="display: none;">请选择</option>
                                                {% for id,text in iOperateIds %}
                                                    <option value="{{ id }}">{{ text }}</option>
                                                {% endfor %}
                                            </select>
                                        </div>

                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px">
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">所在省</label>
                                            <select id="provinceSelect" class="form-control input-sm select2" style="height: 28px;" name="sProvinceName"></select>
                                        </div>
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class=" left-label">所在市</label>
                                            <select id="citySelect" class="form-control input-sm select2" style="height: 28px;" name="sCityName"></select>
                                        </div>
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">

                                            <label class=" left-label">所在区</label>
                                            <select id="countrySelect" class="form-control input-sm select2" style="height: 28px;" name="sCountyName"></select>
                                        </div>

                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left: 10px;margin-bottom: 0px">
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">已签协议</label>
                                            <select type="text" class="form-control input-sm" name="bAgree" id="bAgree" >
                                                <option value="" style="display: none" selected>请选择</option> 
                                                <option value="0">否</option> 
                                                <option value="1">是</option> 
                                            </select>
                                        </div>
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">是否公益</label>
                                            <select type="text" class="form-control input-sm" name="bWelfare" id="bWelfare" >
                                                <option value="" style="display: none" selected>请选择</option> 
                                                <option value="0">否</option> 
                                                <option value="1">是</option> 
                                            </select>
                                        </div>
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">教辅等级</label>
                                            <select type="text" class="form-control input-sm" name="iAidsLevel" id="iAidsLevel" >
                                                <option value="" style="display: none" selected>请选择</option> 
                                                {% for id,text in iAidsLevel %}
                                                    <option value="{{ id }}">{{ text }}</option>
                                                {% endfor %}
                                            </select>
                                        </div>




                                        {#<div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">#}
                                            {#<label class="left-label">是否合作</label>#}
                                            {#<select type="text" class="form-control input-sm" name="bCoop" id="bCoop" >#}
                                                {#<option value="" style="display: none" selected>请选择</option> #}
                                                {#<option value="0">否</option> #}
                                                {#<option value="1">是</option> #}
                                            {#</select>#}
                                        {#</div>#}

                                    </div>
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px">
                                        <div class="col-xs-12 col-sm-8"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">详细地址</label>
                                            <input type="text" name="sDetailedAddress" class="form-control input-lg"  >
                                        </div>
                                        <div class="col-xs-6 col-sm-4"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label">学段</label>
                                            <select type="text" class="form-control input-sm" name="iStage" id="iStage" >
                                                {% for id,text in stage %}
                                                    <option value="{{ id }}" {% if id == 2 %} selected {% endif %}>{{ text }}</option>
                                                {% endfor %}
                                            </select>
                                        </div>


                                    </div><!-- /form-group -->
                                    <div class="form-group" style="margin-left:10px;margin-bottom: 0px">
                                        <div class="col-xs-12 col-sm-8"  style="display: inline;padding: 15px 0px 0px 0px;">
                                            <label class="left-label" >备注</label>
                                            <textarea type="text" name="mDesc"  class="form-control  input-lg"  rows="2"  ></textarea>
                                        </div>

                                    </div><!-- /form-group -->

                                    <div  style="width: 220px;margin-bottom: 10px;margin-left: 90px;padding-top: 15px">
                                        {% if  isShowEdit  %}
                                            <a id="save" class="btn btn-sm btn-success xh-btn-load" style="margin-right: 5px;" >保存</a>
                                            <a  class="btn btn-sm btn-default return" style="margin-right: 20px">返回</a>
                                        {% endif %}
                                    </div>

                                </form>


                                {#<div id="form-btn" style="width: 100% ;"><a class="btn  center-block btn-danger" id="btn_change" style="width: 75px">编辑</a></div>#}
                            </div><!-- ./tab-pane -->

                            {% if isShowFollow %}
                                <div class="tab-pane fade"  id="style3Tab2" style="height: 100%;width: 100%">
                                    <iframe  name="followUpTrace"  src="{{ url('customer/customer/trace?id=')~iCUId~'&type=1' }}"  style="width: 100%;height: 100%;border-style: none;padding: 0px;"  scrolling="yes"   ></iframe>
                                </div><!-- ./tab-pane -->
                            {% endif %}
                            {% if isShowIntention %}
                                <div class="tab-pane fade" id="style3Tab3" style="height: 100%;width: 100%;">
                                    <iframe  name="intentionTrace" src="{{ url('customer/customer/trace?id=')~iCUId~'&type=2' }}"  style="width: 100%;height: 100%;border-style: none;padding: 0px;"  scrolling="yes"  ></iframe>
                                </div><!-- ./tab-pane -->
                            {% endif %}
                            {% if isShowCooperate %}
                                <div class="tab-pane fade" id="style3Tab4" style="height: 100%;width: 100%;">
                                    <iframe  name="cooperationMode" src="{{ url('customer/customer/cooperationMode?id=')~iCUId~'&type=3' }}"  style="width: 100%;height: 100%;border-style: none;padding: 0px;"  scrolling="yes"></iframe>
                                </div><!-- ./tab-pane -->
                            {% endif %}
                            {% if isShowOperation %}
                                <div class="tab-pane fade" id="style3Tab5" style="height: 100%;width: 100%;">
                                    <iframe  name="operationGradeTrace" src="{{ url('customer/customer/trace?id=')~iCUId~'&type=4' }}"  style="width: 100%;height: 100%;border-style: none;padding: 0px;"  scrolling="yes"></iframe>
                                </div><!-- ./tab-pane -->
                            {% endif %}
                            {%  if isShowContact %}
                            <div class="tab-pane fade" id="style3Tab6" style="height: 100%;width: 100%;">
                                <iframe  name="contact" src="{{ url('customer/customer/contact?id=')~iCUId }}"  style="width: 100%;height: 95%;border-style: none;padding: 0px;"  scrolling="yes"></iframe>
                            </div><!-- ./tab-pane -->
                            {% endif %}

                            {#<div class="tab-pane fade" id="style3Tab7" style="height: 100%;width: 100%;">#}
                                {#<iframe  name="leftClass" src="{{ url('customer/customer/classList?iCUId=')~iCUId }}"  style="width: 100%;height: 95%;border-style: none;padding: 0px;"  scrolling="yes"></iframe>#}
                            {#</div><!-- ./tab-pane -->#}
                        </div><!-- ./tab-content -->
                    </div>
                </div>
            </div>                         <!-- ./smart-widget -->
        </td>
    </tr>
</table>
















